/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * ConfigFrame.java
 *
 * Created on 26 févr. 2010, 10:58:38
 */

package chipwits.operator;

/**
 *
 * @author Emmanuel
 */
public class ConfigFrame extends javax.swing.JDialog {

    //Operator opVides[];
    
    /** Creates new form ConfigFrame */
    public ConfigFrame() {
        initComponents();
        this.setModal(true);
/*
        opVides = new Operator[nbCasesEnX * nbCasesEnY];

        int posX, posY;
        for (int i = 0; i < nbCasesEnX; i++) {
            for (int j = 0; j < nbCasesEnY; j++) {
                posX = i * (Operator.ICON_WIDTH + 15) + 15;
                posY = j * (Operator.ICON_HEIGHT + 15) + 15;
                opVides[i*nbCasesEnY+j] = new Operator(Operator.OpType.VIDE, posX, posY);
                ((javax.swing.JLabel) opVides[i*nbCasesEnY+j]).setBounds(posX, posY, Operator.ICON_WIDTH, Operator.ICON_HEIGHT);
                ((javax.swing.JLabel) opVides[i*nbCasesEnY+j]).setBorder(javax.swing.BorderFactory.createEtchedBorder());
                this.add(opVides[i*nbCasesEnY+j]);
            }
        }*/
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jButOK = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        setTitle("Propriétés de l'opérateur");

        jButOK.setText("OK");

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addContainerGap(337, Short.MAX_VALUE)
                .addComponent(jButOK)
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addContainerGap(262, Short.MAX_VALUE)
                .addComponent(jButOK)
                .addContainerGap())
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    /**
    * @param args the command line arguments
    */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new ConfigFrame().setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton jButOK;
    // End of variables declaration//GEN-END:variables

}
